import { Component, OnInit } from '@angular/core';
import {Order} from "../../../model/order";

@Component({
  selector: 'app-order-list',
  templateUrl: './order-list.component.html',
  styleUrls: ['./order-list.component.css']
})
export class OrderListComponent implements OnInit {

  orderList: Array<Order> = [];

  orderStatusName(orderStatus: number): string {
    switch (orderStatus) {
      case 0:
        return '报价单';
      case 1:
        return '正式订单';
      case 2:
        return '生产中';
      case 3:
        return '安装中';
      case 4:
        return '收款中';
      case 5:
        return '已完成';
    }
  }

  constructor() { }

  ngOnInit() {
  }

}
